import httpInstance from "@/utils/http";

//获取二级分类
export const getCategoryAPI2 = (id) => {
  return httpInstance.get('/category', {
    params: {
      id
    }
  })
}

//获取二级分类数据列表
export const getCategoryFilterAPI = (id) => {
  return httpInstance.get('/category/sub/filter',{
    params:{
      id
    }
  })
}

/**
 * @description: 获取导航数据
 * @data {
     categoryId: 1005000 ,
     page: 1,
     pageSize: 20,
     sortField: 'publishTime' | 'orderNum' | 'evaluateNum'
   }
 * @return {*}
 */
export const getSubCategoryAPI = (data) => {
  return httpInstance.post('/category/goods/temporary',data)
}
